<template>
	<view>
		<!-- <view class="mainCard">
			<u-avatar text="王" shape="square" fontSize="28" size="50"></u-avatar>
		</view> -->
		
		<u-cell-group>
			
			<u-cell
				v-for="(item, index) in basicInfo" 
				:key="index"
				:icon="basicInfo[index].ico"
				:title="basicInfo[index].text"
				:value="basicInfo[index].value"
			>
			</u-cell>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userImg:"../../../static/fun0.png",
				basicInfo:[
					{text:"姓名",value:uni.getStorageSync("name"),ico:"../../../static/basicinfo/name.png"},
					{text:"班级",value:uni.getStorageSync("deptname"),ico:"../../../static/basicinfo/banji.png"},
					{text:"学历",value:uni.getStorageSync("standingname"),ico:"../../../static/basicinfo/xueli.png"},
					{text:"学号",value:uni.getStorageSync("sno"),ico:"../../../static/basicinfo/shuz.png"},
					{text:"卡ID",value:uni.getStorageSync("cardno"),ico:"../../../static/basicinfo/ka.png"},
					{text:"银行卡ID",value:uni.getStorageSync("bankno"),ico:"../../../static/basicinfo/ka2.png"},
					{text:"卡状态",value:uni.getStorageSync("cardstatus"),ico:"../../../static/basicinfo/biaoqian.png"},
					{text:"卡内金额",value:uni.getStorageSync("cardbalance"),ico:"../../../static/basicinfo/money.png"},
					{text:"过渡金额",value:uni.getStorageSync("pretmpbalance"),ico:"../../../static/basicinfo/time.png"},
					{text:"bankbalance",value:String(uni.getStorageSync("bankbalance")),ico:""},
					{text:"tmpbalance",value:String(uni.getStorageSync("tmpbalance")),ico:""},
					{text:"showbankbalance",value:String(uni.getStorageSync("showbankbalance")),ico:""},
					{text:"state",value:String(uni.getStorageSync("state")),ico:""},
					{text:"frozen",value:String(uni.getStorageSync("frozen")),ico:""},
					{text:"eaccinfos",value:String(uni.getStorageSync("eaccinfos")),ico:""}
					
				]
			};
		}
	}
</script>

<style lang="scss">
	.mainCard{
		width: 700rpx;
		height: 300rpx;
		border-radius: 20rpx;
		background-color: #ddc000;
		margin: 30rpx auto;
		overflow: hidden;
		.u-avatar{
			margin: 30rpx 0 0 30rpx;
		}
	}
</style>
